import React from "react";
import { List } from "antd";

const TodoItem = props => {
	const { content, index, handleItemClick } = props;
	return (
		<List.Item onClick={() => handleItemClick(index)}>{content}</List.Item>
	);
};

export default TodoItem;
